package com.hydl.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hydl.power.pojo.CabinetDevice;
import com.hydl.power.pojo.VacuumCircuitBreaker;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wxx
 * @since 2021-03-03
 */
public interface VacuumCircuitBreakerMapper extends BaseMapper<VacuumCircuitBreaker> {

    CabinetDevice getCabinetDeviceNumber(String cabinetId, String projectId, String powerRoomId);

    List<VacuumCircuitBreaker> getDeviceList(String cabinetId);

    void addVacuumCircuitBreaker(VacuumCircuitBreaker vacuumCircuitBreaker);

    void updateVacuumCircuitBreaker(Integer id, String name, String manufactor, String serialNumber, String modelNumber, String productionTime, String frequency, String voltage, String electricCurrent, String controlVoltage, String energyStorageVoltage, String cabinetId, String projectId, String projectName, String powerRoomId, String powerRoomName);

    void deleteVacuumCircuitBreaker(Integer id);

    List<CabinetDevice> getDeviceByProjectId(String projectId);
}
